cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(dehaze)

# package
find_package(OpenCV REQUIRED)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

add_executable(${PROJECT_NAME} ${PROJECT_NAME}.cpp)

# libtorch
target_link_libraries(${PROJECT_NAME} ${TORCH_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})

set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)